representation of graphs in data structure